package com.dl698.axdr;

/**
 * ActionRequestChoice枚举
 * 定义动作请求选择的枚举值
 */
public enum ActionRequestChoice {
    _ERR_NONE_SELECTED(-1),
    ACTION_REQUEST_NORMAL(0),
    ACTION_REQUEST_LIST(1),
    ACTION_THEN_GET_REQUEST_NORMAL_LIST(2);

    private final int value;

    ActionRequestChoice(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public static ActionRequestChoice fromValue(int value) {
        for (ActionRequestChoice choice : ActionRequestChoice.values()) {
            if (choice.value == value) {
                return choice;
            }
        }
        return _ERR_NONE_SELECTED;
    }
}